package com.htx.oldbookpavilion.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

public class ShoppingList {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shoppingListId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userInfoId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long bookId;

    private String bookName;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long bookUserId;

    private String bookUserName;

    private String bookUserEmail;

    private Integer count;

    private Date createTime;

    private Date lastModifiedTime;

    public Long getShoppingListId() {
        return shoppingListId;
    }

    public void setShoppingListId(Long shoppingListId) {
        this.shoppingListId = shoppingListId;
    }

    public Long getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(Long userInfoId) {
        this.userInfoId = userInfoId;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName == null ? null : bookName.trim();
    }

    public Long getBookUserId() {
        return bookUserId;
    }

    public void setBookUserId(Long bookUserId) {
        this.bookUserId = bookUserId;
    }

    public String getBookUserName() {
        return bookUserName;
    }

    public void setBookUserName(String bookUserName) {
        this.bookUserName = bookUserName == null ? null : bookUserName.trim();
    }

    public String getBookUserEmail() {
        return bookUserEmail;
    }

    public void setBookUserEmail(String bookUserEmail) {
        this.bookUserEmail = bookUserEmail == null ? null : bookUserEmail.trim();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifiedTime() {
        return lastModifiedTime;
    }

    public void setLastModifiedTime(Date lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
    }
}